﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Permissions;
using System.Threading.Tasks;

namespace HostingDemo
{
    public class MetricsCollectorOption
    {
        public TimeSpan CaptureInterval { get; set; }
        public TransportType TransportType { get; set; }
        public EndPoint DeliverTo { get; set; }

    }

    public enum TransportType
    {
        Tcp,
        Http,
        Udp
    }

    public class EndPoint
    {
        public string Host { get; set; }
        public int Port { get; set; }
        public override string ToString()
        {
            return $"{Host}:{Port}";
        }
    }
}
